<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>在线考试系统</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css"
        integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
    <link rel="stylesheet" href="/css/admin/launchExam.css">
</head>

<body>
    <%- include ("../publicEjs/public.ejs")%>

    <div class="container-fluid" style="margin-top: 80px;">
        <div class="row">
            <!-- <div class="col-3">
                <div class="list-group">
                    <a href="#" class="list-group-item list-group-item-action active">
                        发布考试
                    </a>
                    <a href="#" class="list-group-item list-group-item-action">正在进行的考试
                        <span class="badge badge-primary badge-pill">14</span>
                    </a>
                    <a href="#" class="list-group-item list-group-item-action">已完成的考试</a>
                </div>
            </div> -->
            <%- include ("../publicEjs/adminLeft.ejs")%>
            <div class="col-9">
                <table class="table table-hover">
                    <thead>
                        <tr>
                            <th scope="col">序号</th>
                            <th scope="col">试卷编号</th>
                            <th scope="col">任务备注</th>
                            <th scope="col">出题截止日期</th>
                            <th scope="col">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <%for(var i=0;i<list.length;i++) { %>
                        <tr>
                            <th scope="row"><%=i+1%></th>
                            <td><%=list[i].testWordId%></td>
                            <td><%=list[i].note%></td>
                            <td><%=list[i].endTime%></td>
                            <td>
                                <div class="btn-group btn-group-sm" role="group" aria-label="Basic example">
                                    <a href="/admin/addpage?testWordId=<%=list[i].testWordId%>&id=<%=list[i].id%>" style="color: #fff;" class="btn btn-secondary">开始出题</a>
                                </div>
                            </td>
                        </tr>
                        <% } %>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <%- include ("../publicEjs/foot.ejs")%>

    <script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.slim.min.js"
        integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
        crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
        integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
        crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/js/bootstrap.min.js"
        integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
        crossorigin="anonymous"></script>
    <script src="/js/jquery.js"></script>
    <script src="/js/backstage/addpageList.js"></script>
    <script src="/js/admin/publicTea.js"></script>
</body>

</html>